package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.SalaryFeedbackAddDTO;
import org.jsola.hr.dto.SalaryFeedbackUpdateDTO;
import org.jsola.hr.query.SalaryFeedbackQuery;
import org.jsola.hr.vo.SalaryFeedbackListVO;
import org.jsola.hr.vo.SalaryFeedbackVO;

import java.util.List;

/**
 * 工资条反馈记录
 *
 * @author zhr
 */
@Api(tags = "hr-工资条反馈记录")
public interface ISalaryFeedbackControllerAPI {

    /**
     * 新增工资条反馈记录
     * @param salaryFeedbackAddDTO 工资条反馈记录新增实体
     * @return 工资条反馈记录展示对象
     */
    @ApiOperation(value = "新增工资条反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "salaryFeedbackAddDTO", dataType = "SalaryFeedbackAddDTO", value = "新增工资条反馈记录", paramType = "body")
    })
    Result<SalaryFeedbackVO> save(SalaryFeedbackAddDTO salaryFeedbackAddDTO);


    /**
     * 修改工资条反馈记录
     * @param salaryFeedbackUpdateDTO 工资条反馈记录
     * @return 更新数量
     */
    @ApiOperation(value = "修改工资条反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "salaryFeedbackUpdateDTO", dataType = "SalaryFeedbackUpdateDTO", value = "修改工资条反馈记录", paramType = "body")
    })
    Result<Integer> update(SalaryFeedbackUpdateDTO salaryFeedbackUpdateDTO);




    /**
     * 删除单个工资条反馈记录，彻底删除
     * @param salaryFeedbackId 工资条反馈记录id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个工资条反馈记录，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "salaryFeedbackId", dataType = "String", value = "工资条反馈记录id", paramType = "path")
    })
    Result<Integer> delete(String salaryFeedbackId);


    /**
     * 批量删除工资条反馈记录，彻底删除
     * @param salaryFeedbackIds 工资条反馈记录id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除工资条反馈记录，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "salaryFeedbackIds", dataType = "String[]", value = "工资条反馈记录id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] salaryFeedbackIds);


    /**
     * 根据工资条反馈记录id查询工资条反馈记录详情
     * @param salaryFeedbackId 工资条反馈记录id
     * @return 工资条反馈记录详情
     */
    @ApiOperation(value="根据工资条反馈记录id查询工资条反馈记录详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "salaryFeedbackId", dataType = "String", value = "工资条反馈记录id", paramType = "path")
    })
    Result<SalaryFeedbackVO> findById(String salaryFeedbackId);


    /**
     * 查询工资条反馈记录
     * @param salaryFeedbackQuery 工资条反馈记录查询参数
     * @return page
     */
    @ApiOperation(value="查询工资条反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "salaryFeedbackQuery", dataType = "SalaryFeedbackQuery", value = "工资条反馈记录查询参数", paramType = "query")
    })
    Result<List<SalaryFeedbackListVO>> listAll(SalaryFeedbackQuery salaryFeedbackQuery);


     /**
     * 分页查询工资条反馈记录
     * @param salaryFeedbackQuery 工资条反馈记录查询参数
     * @return page
     */
    @ApiOperation(value="分页查询工资条反馈记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "salaryFeedbackQuery", dataType = "SalaryFeedbackQuery", value = "工资条反馈记录查询参数", paramType = "query")
    })
    Result<Page<SalaryFeedbackListVO>> page(SalaryFeedbackQuery salaryFeedbackQuery);


}

